package com.epam.properties;

import java.io.File;
import java.io.FileOutputStream;
import java.io.IOException;
import java.util.Properties;

public class PropCreator_notUsed {

	public static void main(String[] args) {
		Properties prop[] = new Properties[13];

		for (int i = 0; i < 13; i++) {
			prop[i] = new Properties();
		}
		File dirAirplanes = new File("src" + File.separator + "com"
				+ File.separator + "epam" + File.separator + "properties"
				+ File.separator + "Airplanes");
		File dirHelicopters = new File("src" + File.separator + "com"
				+ File.separator + "epam" + File.separator + "properties"
				+ File.separator + "Helicopters");
		// An-148-100E
		try {
			prop[0].setProperty("name", "An-148-100E");
			prop[0].setProperty("numPass", "80");
			prop[0].setProperty("tonnage", "9.68f");
			prop[0].setProperty("distance", "4400");
			prop[0].setProperty("consumption", "1650");
			prop[0].setProperty("id", "AN1481-");
			prop[0].store(new FileOutputStream(dirAirplanes + File.separator
					+ "An148.properties"), null);
			// An-158-100
			prop[1].setProperty("name", "An-158-100");
			prop[1].setProperty("numPass", "99");
			prop[1].setProperty("tonnage", "9.8f");
			prop[1].setProperty("distance", "2500");
			prop[1].setProperty("consumption", "1650");
			prop[1].setProperty("id", "AN1581-");
			prop[1].store(new FileOutputStream(dirAirplanes + File.separator
					+ "An158.properties"), null);
			// Tu-134B
			prop[2].setProperty("name", "Tu-134B");
			prop[2].setProperty("numPass", "96");
			prop[2].setProperty("tonnage", "9.0f");
			prop[2].setProperty("distance", "2020");
			prop[2].setProperty("consumption", "2500");
			prop[2].setProperty("id", "TU134B-");
			prop[2].store(new FileOutputStream(dirAirplanes + File.separator
					+ "Tu134B.properties"), null);
			// Tu-154M
			prop[3].setProperty("name", "Tu-154M");
			prop[3].setProperty("numPass", "180");
			prop[3].setProperty("tonnage", "18.0f");
			prop[3].setProperty("distance", "3900");
			prop[3].setProperty("consumption", "5300");
			prop[3].setProperty("id", "TU154M-");
			prop[3].store(new FileOutputStream(dirAirplanes + File.separator
					+ "Tu154M.properties"), null);
			// Tu-204-100
			prop[4].setProperty("name", "Tu-204-100");
			prop[4].setProperty("numPass", "196");
			prop[4].setProperty("tonnage", "21.0f");
			prop[4].setProperty("distance", "4400");
			prop[4].setProperty("consumption", "3460");
			prop[4].setProperty("id", "TU2041-");
			prop[4].store(new FileOutputStream(dirAirplanes + File.separator
					+ "Tu204.properties"), null);
			// Airbus A310
			prop[5].setProperty("name", "Airbus A310");
			prop[5].setProperty("numPass", "280");
			prop[5].setProperty("tonnage", "33.46f");
			prop[5].setProperty("distance", "9540");
			prop[5].setProperty("consumption", "4300");
			prop[5].setProperty("id", "AIA310-");
			prop[5].store(new FileOutputStream(dirAirplanes + File.separator
					+ "Airbus310.properties"), null);
			// Boeing-737-100
			prop[6].setProperty("name", "Boeing-737-100");
			prop[6].setProperty("numPass", "99");
			prop[6].setProperty("tonnage", "15.0f");
			prop[6].setProperty("distance", "3440");
			prop[6].setProperty("consumption", "2800");
			prop[6].setProperty("id", "BO7371-");
			prop[6].store(new FileOutputStream(dirAirplanes + File.separator
					+ "Boeing737100.properties"), null);
			// Boeing-737-300
			prop[7].setProperty("name", "Boeing-737-300");
			prop[7].setProperty("numPass", "128");
			prop[7].setProperty("tonnage", "15.0f");
			prop[7].setProperty("distance", "2900");
			prop[7].setProperty("consumption", "2800");
			prop[7].setProperty("id", "BO7373-");
			prop[7].store(new FileOutputStream(dirAirplanes + File.separator
					+ "Boeing737300.properties"), null);
			// Boeing-737-500
			prop[8].setProperty("name", "Boeing-737-500");
			prop[8].setProperty("numPass", "138");
			prop[8].setProperty("tonnage", "15.5f");
			prop[8].setProperty("distance", "5200");
			prop[8].setProperty("consumption", "2800");
			prop[8].setProperty("id", "BO7375-");
			prop[8].store(new FileOutputStream(dirAirplanes + File.separator
					+ "Boeing737500.properties"), null);

			// Agusta A 119 Koala
			prop[9].setProperty("name", "Agusta A 119 Koala");
			prop[9].setProperty("numPass", "7");
			prop[9].setProperty("tonnage", "0.3f");
			prop[9].setProperty("distance", "991");
			prop[9].setProperty("consumption", "200");
			prop[9].setProperty("id", "AGA119-");
			prop[9].setProperty("engine", "GAS_TURBINE");
			prop[9].setProperty("tankVolume", "250");
			prop[9].store(new FileOutputStream(dirHelicopters + File.separator
					+ "Agusta119.properties"), null);
			// Robinson R44 Newscopter
			prop[10].setProperty("name", "Robinson R44 Newscopter");
			prop[10].setProperty("numPass", "3");
			prop[10].setProperty("tonnage", "0.2f");
			prop[10].setProperty("distance", "650");
			prop[10].setProperty("consumption", "180");
			prop[10].setProperty("id", "ROR44N-");
			prop[10].setProperty("engine", "RECIPROCATING");
			prop[10].setProperty("tankVolume", "227");
			prop[10].store(new FileOutputStream(dirHelicopters + File.separator
					+ "RobinsonR44.properties"), null);
			// Sikorsky S 92
			prop[11].setProperty("name", "Sikorsky S 92");
			prop[11].setProperty("numPass", "19");
			prop[11].setProperty("tonnage", "2.1f");
			prop[11].setProperty("distance", "1015");
			prop[11].setProperty("consumption", "230");
			prop[11].setProperty("id", "SIS92-");
			prop[11].setProperty("engine", "RECIPROCATING");
			prop[11].setProperty("tankVolume", "199");
			prop[11].store(new FileOutputStream(dirHelicopters + File.separator
					+ "SikorskyS92.properties"), null);
			// Ka 32
			prop[12].setProperty("name", "Ka 32");
			prop[12].setProperty("numPass", "16");
			prop[12].setProperty("tonnage", "3.2f");
			prop[12].setProperty("distance", "650");
			prop[12].setProperty("consumption", "280");
			prop[12].setProperty("id", "KA32-");
			prop[12].setProperty("engine", "GAS_TURBINE");
			prop[12].setProperty("tankVolume", "203");
			prop[12].store(new FileOutputStream(dirHelicopters + File.separator
					+ "KA32.properties"), null);
		} catch (IOException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

	}

}
